/**
 * 默认数据类型
 * @type {{tree: {name: string, template: {id: {type: string}, text: {type: string}, title: {type: string, len: number[]}, descr: {type: string, len: number[]}}}, list: {name: string, template: {id: {type: string}, name: {type: string}, datetime: {type: string, format: string}, status: {type: string}, descr: {type: string, len: number[]}}}, image: {name: string, template: {url: {type: string}, name: {type: string}}}, person: {name: string, template: {name: {type: string}, logo: {type: string}, age: {type: string, len: number[]}, sex: {type: string, pool: string}}}}}
 */
module.exports = {
    tree: {
        name: "树型数据结构",
        template: {
            "id": {
                "type": "uuid"
            },
            "text": {
                "type": "stringCN"
            },
            "title": {
                "type": "boolean"
            },
            "status": {
                "type": "title"
            },
            "descr": {
                "type": "stringCN",
                "len": [4, 10]
            }
        }
    },
    list: {
        name: "数组类型数据",
        template: {
            "id": {
                "type": "uuid"
            },
            "name": {
                "type": "nameCN"
            },
            "datetime": {
                "type": "datetime",
                "format": "yyyy-MM-dd HH:mm:ss"
            },
            "status": {
                "type": "boolean"
            },
            "descr": {
                "type": "stringCN",
                "len": [4, 10]
            }
        }
    },
    image: {
        "name": "返回一个图片",
        template: {
            url: {
                type: "image"
            },
            name: {
                type: "nameCN"
            }
        }
    },
    person: {
        "name": "返回一个用户信息",
        template: {
            uuid: {
                type: "uuid"
            },
            token: {
                type: "uuid"
            },
            account: {
                type: "stringEN",
                len: [10, 10]
            },
            name: {
                type: "nameCN"
            },
            logo: {
                type: "image"
            },
            age: {
                type: "int",
                len: [1, 80]
            },
            sex: {
                one: "男女"
            }
        }
    },
    article: {
        "name": "返回一个文章数据",
        "template": {
            "title": {
                type: "titleCN"
            },
            "author": {
                type: "nameCN"
            },
            "time": {
                type: "date"
            },
            "content": {
                type: "textCN",
                len: [40]
            }
        }
    }
}
